package com.mfangsoft.zhuangjialong.article.model;

import java.io.Serializable;
import java.util.Date;

/**
 *   文章列表
 * table t_biz_article
 *
 * @MLTH_generated do_not_delete_during_merge
 */
public class ArticleEntity implements Serializable {
    /**
     *   主键id
     * column id
     *
     * @MLTH_generated
     */
    private Long id;

    /**
     *   图片
     * column image
     *
     * @MLTH_generated
     */
    private String image;

    /**
     *   文章标题
     * column title
     *
     * @MLTH_generated
     */
    private String title;

    /**
     *   文章类型
     * column type
     *
     * @MLTH_generated
     */
    private Integer type;

    /**
     *   创建日期
     * column create_time
     *
     * @MLTH_generated
     */
    private Date create_time;

    /**
     *   作者
     * column author
     *
     * @MLTH_generated
     */
    private String author;

    /**
     *   文章概要
     * column digest
     *
     * @MLTH_generated
     */
    private String digest;

    /**
     *   状态(0 过期 1 可用）
     * column state
     *
     * @MLTH_generated
     */
    private Integer state;

    /**
     *   更新时间
     * column update_time
     *
     * @MLTH_generated
     */
    private Date update_time;

    /**
     *   浏览量
     * column seen_time
     *
     * @MLTH_generated
     */
    private Integer seen_time;

    /**
     *   分享量
     * column share_num
     *
     * @MLTH_generated
     */
    private Integer share_num;

    /**
     *   推荐状态（0否 1 是）
     * column introduce_state
     *
     * @MLTH_generated
     */
    private Integer introduce_state;

    /**
     *   标签
     * column tag
     *
     * @MLTH_generated
     */
    private String tag;

    /**
     *   消费者id
     * column customer_id
     *
     * @MLTH_generated
     */
    private Long customer_id;

    /**
     *   发布时间
     * column publish_time
     *
     * @MLTH_generated
     */
    private Date publish_time;

    /**
     *   区域编码
     * column region_code
     *
     * @MLTH_generated
     */
    private String region_code;

    /**
     *   文章详情
     * column details
     *
     * @MLTH_generated
     */
    private String details;

    /**
     * 商户id
     */
    private Long user_id;
    
    public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	/**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table t_biz_article
     *
     * @MLTH_generated
     */
    private static final long serialVersionUID = 1L;

    /**
     *   主键id
     * @return the value of BIGINT
     *
     * @MLTH_generated
     */
    public Long getId() {
        return id;
    }

    /**
     *   主键id
     * @param id the value for 
     *
     * @MLTH_generated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     *   图片
     * @return the value of VARCHAR
     *
     * @MLTH_generated
     */
    public String getImage() {
        return image;
    }

    /**
     *   图片
     * @param image the value for 
     *
     * @MLTH_generated
     */
    public void setImage(String image) {
        this.image = image == null ? null : image.trim();
    }

    /**
     *   文章标题
     * @return the value of VARCHAR
     *
     * @MLTH_generated
     */
    public String getTitle() {
        return title;
    }

    /**
     *   文章标题
     * @param title the value for 
     *
     * @MLTH_generated
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     *   文章类型
     * @return the value of INTEGER
     *
     * @MLTH_generated
     */
    public Integer getType() {
        return type;
    }

    /**
     *   文章类型
     * @param type the value for 
     *
     * @MLTH_generated
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     *   创建日期
     * @return the value of TIMESTAMP
     *
     * @MLTH_generated
     */
    public Date getCreate_time() {
        return create_time;
    }

    /**
     *   创建日期
     * @param create_time the value for 
     *
     * @MLTH_generated
     */
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    /**
     *   作者
     * @return the value of VARCHAR
     *
     * @MLTH_generated
     */
    public String getAuthor() {
        return author;
    }

    /**
     *   作者
     * @param author the value for 
     *
     * @MLTH_generated
     */
    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    /**
     *   文章概要
     * @return the value of VARCHAR
     *
     * @MLTH_generated
     */
    public String getDigest() {
        return digest;
    }

    /**
     *   文章概要
     * @param digest the value for 
     *
     * @MLTH_generated
     */
    public void setDigest(String digest) {
        this.digest = digest == null ? null : digest.trim();
    }

    /**
     *   状态(0 过期 1 可用）
     * @return the value of INTEGER
     *
     * @MLTH_generated
     */
    public Integer getState() {
        return state;
    }

    /**
     *   状态(0 过期 1 可用）
     * @param state the value for 
     *
     * @MLTH_generated
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     *   更新时间
     * @return the value of TIMESTAMP
     *
     * @MLTH_generated
     */
    public Date getUpdate_time() {
        return update_time;
    }

    /**
     *   更新时间
     * @param update_time the value for 
     *
     * @MLTH_generated
     */
    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    /**
     *   浏览量
     * @return the value of INTEGER
     *
     * @MLTH_generated
     */
    public Integer getSeen_time() {
        return seen_time;
    }

    /**
     *   浏览量
     * @param seen_time the value for 
     *
     * @MLTH_generated
     */
    public void setSeen_time(Integer seen_time) {
        this.seen_time = seen_time;
    }

    /**
     *   分享量
     * @return the value of INTEGER
     *
     * @MLTH_generated
     */
    public Integer getShare_num() {
        return share_num;
    }

    /**
     *   分享量
     * @param share_num the value for 
     *
     * @MLTH_generated
     */
    public void setShare_num(Integer share_num) {
        this.share_num = share_num;
    }

    /**
     *   推荐状态（0否 1 是）
     * @return the value of INTEGER
     *
     * @MLTH_generated
     */
    public Integer getIntroduce_state() {
        return introduce_state;
    }

    /**
     *   推荐状态（0否 1 是）
     * @param introduce_state the value for 
     *
     * @MLTH_generated
     */
    public void setIntroduce_state(Integer introduce_state) {
        this.introduce_state = introduce_state;
    }

    /**
     *   标签
     * @return the value of VARCHAR
     *
     * @MLTH_generated
     */
    public String getTag() {
        return tag;
    }

    /**
     *   标签
     * @param tag the value for 
     *
     * @MLTH_generated
     */
    public void setTag(String tag) {
        this.tag = tag == null ? null : tag.trim();
    }

    /**
     *   消费者id
     * @return the value of BIGINT
     *
     * @MLTH_generated
     */
    public Long getCustomer_id() {
        return customer_id;
    }

    /**
     *   消费者id
     * @param customer_id the value for 
     *
     * @MLTH_generated
     */
    public void setCustomer_id(Long customer_id) {
        this.customer_id = customer_id;
    }

    /**
     *   发布时间
     * @return the value of TIMESTAMP
     *
     * @MLTH_generated
     */
    public Date getPublish_time() {
        return publish_time;
    }

    /**
     *   发布时间
     * @param publish_time the value for 
     *
     * @MLTH_generated
     */
    public void setPublish_time(Date publish_time) {
        this.publish_time = publish_time;
    }

    /**
     *   区域编码
     * @return the value of VARCHAR
     *
     * @MLTH_generated
     */
    public String getRegion_code() {
        return region_code;
    }

    /**
     *   区域编码
     * @param region_code the value for 
     *
     * @MLTH_generated
     */
    public void setRegion_code(String region_code) {
        this.region_code = region_code == null ? null : region_code.trim();
    }

    /**
     *   文章详情
     * @return the value of LONGVARCHAR
     *
     * @MLTH_generated
     */
    public String getDetails() {
        return details;
    }

    /**
     *   文章详情
     * @param details the value for 
     *
     * @MLTH_generated
     */
    public void setDetails(String details) {
        this.details = details == null ? null : details.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", image=").append(image);
        sb.append(", title=").append(title);
        sb.append(", type=").append(type);
        sb.append(", create_time=").append(create_time);
        sb.append(", author=").append(author);
        sb.append(", digest=").append(digest);
        sb.append(", state=").append(state);
        sb.append(", update_time=").append(update_time);
        sb.append(", seen_time=").append(seen_time);
        sb.append(", share_num=").append(share_num);
        sb.append(", introduce_state=").append(introduce_state);
        sb.append(", tag=").append(tag);
        sb.append(", customer_id=").append(customer_id);
        sb.append(", publish_time=").append(publish_time);
        sb.append(", region_code=").append(region_code);
        sb.append(", details=").append(details);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}